/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.sys.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.sys.entity.StoreLogin;

/**
 * ipad地址绑定DAO接口
 * @author liujiang
 * @version 2013-09-22
 */
public interface StoreLoginDao extends StoreLoginDaoCustom, CrudRepository<StoreLogin, Long> {
	@Query("from StoreLogin where store.id = ?1")
	public List<StoreLogin> getByStore(Long storeId);
}

/**
 * DAO自定义接口
 * @author liujiang
 */
interface StoreLoginDaoCustom extends BaseDao<StoreLogin> {

}

/**
 * DAO自定义接口实现
 * @author liujiang
 */
@Component
class StoreLoginDaoImpl extends BaseDaoImpl<StoreLogin> implements StoreLoginDaoCustom {

}
